﻿using System;
using System.Collections.Generic;
using System.Text;

namespace _2023._5._8超市收银系统
{
    class DiscountRate : DisountFather
    {
        double _rate;

        public DiscountRate(double rate)
        {
            _rate = rate;
        }

        public double Rate { get => _rate; set => _rate = value; }

        public override double LastMoney(double money)
        {
            return money * Rate;
        }
    }
}
